The documentation indicates that they are optional, so let us make the
code behave accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=719965
},
createIcon: function(size, meta) {
- let gicon;
+ let gicon = null;
+ let icon = null;
+
if (meta['icon']) {
gicon = Gio.icon_deserialize(meta['icon']);
} else if (meta['gicon']) {
bitsPerSample, width, height, rowStride);
}
- return new St.Icon({ gicon: gicon,
- icon_size: size });
+ if (gicon)
+ icon = new St.Icon({ gicon: gicon,
+ icon_size: size });
+ return icon;
},
filterResults: function(results, maxNumber) {